import request from '@/utils/request'

/**
 * 表 2 矿图数据项说明分页查询
 * @param {查询条件} data
 */
export function listProMiningmap(query) {
  return request({
    url: 'business/map/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增表 2 矿图数据项说明
 * @param data
 */
export function addProMiningmap(data) {
  return request({
    url: 'business/map',
    method: 'post',
    data: data,
  })
}
/**
 * 修改表 2 矿图数据项说明
 * @param data
 */
export function updateProMiningmap(data) {
  return request({
    url: 'business/map',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取表 2 矿图数据项说明详情
 * @param {Id}
 */
export function getProMiningmap(id) {
  return request({
    url: 'business/map/' + id,
    method: 'get'
  })
}

/**
 * 删除表 2 矿图数据项说明
 * @param {主键} pid
 */
export function delProMiningmap(pid) {
  return request({
    url: 'business/map/delete/' + pid,
    method: 'delete'
  })
}

//获取getUploadUrl
export function getUploadUrl(data){
  return request({
    url: 'business/qiniu/upload',
    method: 'post',
    data: data,
  })
}
